package com.mes.biz.mapper;

import com.mes.biz.domain.BizOrder;
import com.mes.biz.domain.BizOrderProcessRecord;
import com.mes.biz.domain.BizProductionOrder;
import com.mes.biz.domain.vo.OrderTrackingRecord;
import com.mes.biz.domain.vo.PieceProductionRecordVo;
import com.mes.biz.domain.vo.ProcessRecordWithOrder;
import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 工序完成记录Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-05-15
 */
public interface BizOrderProcessRecordMapper extends BaseMapper<BizOrderProcessRecord>{


    public Long findInfo(BizProductionOrder bizProductionOrder);

    public int deleteByOrderId(@Param("orderId") String orderId, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

    public int deleteByOrderProductId(@Param("orderProductId") String orderProductId, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);

//    public List<ProcessRecordWithOrder> pieceProductionList(BizOrderProcessRecord record);

    public List<BizOrderProcessRecord> getByOrderId(@Param("orderId")String orderId);

    public List<OrderTrackingRecord> findCompletedByOrderProductId(@Param("orderProductId") String orderProductId,@Param("creator") String creator);

    public List<PieceProductionRecordVo> findPieceProductionDetailList(@Param("orderProductId") String orderProductId, @Param("creator") String creator);

    public List<BizOrderProcessRecord> findListByOrderId(BizOrderProcessRecord bizOrderProcessRecord);
}
